<template>
  <div id="app">
    <!-- 路由容器 -->
    <router-view v-if="refresh" />
  </div>
</template>

<script>
export default {
  name: 'App',
  provide(){
    return {
      reload:this.reload
    }
  },
  data() {
    return {
      refresh:true
    }
  },
  methods:{
    reload(){
      console.log('project');
      this.refresh=false;
      this.$nextTick(()=>{
        this.refresh=true;
      })
    }
  },
  created() {}
}
</script>

<style>
</style>
